package cz.proks.easyhelpdesk.gwt.ui.widget;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class UserWidget extends Composite {

    private static UserWidgetUiBinder uiBinder = GWT.create(UserWidgetUiBinder.class);

    interface UserWidgetUiBinder extends UiBinder<Widget, UserWidget> {
    }
    
    @UiField H3Widget header;
    @UiField Label userIdLabel;
    @UiField Label userProviderIdLabel;
    @UiField Label userNameLabel;
    @UiField Label userSurnameLabel;
    @UiField Label userEmailLabel;    

    public UserWidget() {
        initWidget(uiBinder.createAndBindUi(this));
    }
    
    public String getHeader() {
        return header.getText();
    }
    
    public void setHeader(String header) {
        this.header.setText(header);
    }
    
    public String getId() {
        return userIdLabel.getText();
    }
    
    public void setId(String id) {
        userIdLabel.setText(id);
    }

    public String getProviderId() {
        return userProviderIdLabel.getText();
    }
    
    public void setProviderId(String providerId) {
        userProviderIdLabel.setText(providerId);
    }
    
    public String getName() {
        return userNameLabel.getText();
    }
    
    public void setName(String name) {
        userNameLabel.setText(name);
    }
    
    public String getSurname() {
        return userSurnameLabel.getText();
    }
    
    public void setSurname(String surname) {
        userSurnameLabel.setText(surname);
    }
    
    public String getEmail() {
        return userEmailLabel.getText();
    }
    
    public void setEmail(String email) {
        userEmailLabel.setText(email);
    }
}
 